#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.${parentArtifactId}.modules.demo.excel;
import ${package}.${parentArtifactId}.libcommon.excel.ExcelImporter;
import ${package}.${parentArtifactId}.modules.demo.service.DeviceService;
import lombok.RequiredArgsConstructor;

import ${package}.${parentArtifactId}.modules.demo.dto.DeviceDTO;
import java.util.List;

/**
 * Device数据导入器
 */
@RequiredArgsConstructor
public class DeviceImporter implements ExcelImporter<DeviceDTO> {

    private final DeviceService deviceService;
    private final Boolean isCovered;

    @Override
    public void save(List<DeviceDTO> data) {
            deviceService.importData(data, isCovered);
    }
}